<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script src="https://cdn.bootcss.com/vue/2.5.17-beta.0/vue.min.js"></script>
</head>
<body>
<div id="app">
  {{sayHello('你好啊')}}<br/>
  {{array[2]}}<br/>
  {{ person.age }}
</div>
<script>
  //底层操作：sessionStoage localStoage
  new Vue({
    el:"#app",//ID
    data:{
      title:"hello vue!",
      args1:"hi!",
      age:18,
      flag:true,
      array: [1,2,3,4],
      person: {"name":"老王","age":20}
    },
    methods:{//methods：表示N多个方法
      sayHello:function(value){
        return "hello vue:" + value;
      }
    }
  });
</script>
</body>
</html>
